Skip to content

Conversation

@brendandahl
Copy link
Collaborator

@brendandahl brendandahl commented Sep 6, 2024

A few todos:

  • enable liftoff when FP16 is fixed in V8
  • test missing instructions

A few todos:
 - test at other optimization levels
 - enable liftoff when FP16 is fixed in V8
 - test missing instructions
test/test_fp16.c Outdated
a = wasm_f16x8_nearest(wasm_f16x8_splat(1.5f));
assert_all_lanes_eq(a, 2.0f);

a = wasm_f16x8_eq(wasm_f16x8_splat(2.0f), wasm_f16x8_splat(3.0f));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be worth covering all the interesting cases for the comparisons to ensure we are getting the right comparison at runtime.

})
def test_fp16(self, opts):
self.v8_args += ['--experimental-wasm-fp16']
# TODO Remove this. Liftoff is currently broken for this test.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, do you know what specifically is broken?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@requires_v8
@parameterized({
'': [[]],
'O2': [['-O2']]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe -O3 for the most coverage?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you recommend in addition to or in replace of O2?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just replace it, as it's practically a superset of -O2.

@brendandahl brendandahl merged commit 04a72c2 into emscripten-core:main Sep 23, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants